﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Security.Principal;
using System.Web.Security;
/// <summary>
/// Summary description for CustomIdentity
/// </summary>
public class CustomIdentity : IIdentity
{
    private FormsAuthenticationTicket _ticket;

	public CustomIdentity(FormsAuthenticationTicket ticket)
	{
        _ticket = ticket;
	}

    public string AuthenticationType
    {
        get { return "Forms"; }
    }

    public bool IsAuthenticated
    {
        get { return true; }
    }

    public string Name
    {
        get { return _ticket.Name; }
    }

    public FormsAuthenticationTicket Ticket
    {
        get { return _ticket; }
    }
}